//
//  RequestManager.h
//  test10010001
//
//  Created by xalo on 16/7/9.
//  Copyright © 2016年 xmaz. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <FMDB.h>
#import <AFNetworking.h>
//需要两个第三方

typedef void(^updateUI)(void);
typedef void(^fetchData)(NSData *data);

@interface QZRequestManager : NSObject
//默认值为libary -> caches 
@property(nonatomic,strong)NSString *filePath;

+ (instancetype)sharedManager;
//请求数据
- (void)fetchDataWithUrl:(NSString *)urlString parameters:(NSDictionary *)parameters method:(NSString *)method needToCaches:(BOOL)needCaches fetchData:(fetchData)fetchdata updateUI:(updateUI)updateui;
@end
